package com.xyw.service;

import java.util.List;

import com.xyw.entity.Articles;
import com.xyw.entity.User;

public interface ArticlesBiz {

	public boolean add(Articles a);

	public boolean deleteByID(int articlesId);

	public Articles update(Articles a);

	public List<Articles> queryAll();

	public List<Articles> queryByUserID(int userID);

	public Articles queryByArticlesID(int articlesID);

	public Articles queryByTitle(String title);

	public Articles getShangXia(int id, int type);

	public Articles getShangXiaUser(int Article_id, int type, int User_id);

	public int getCount();

	public int getCountUser(int User_id);

	public List<Articles> queryByPage(int page, int size);

	public List<Articles> queryByPageUser(int page, int size, int User_id);

}
